<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var date1 = +new Date();
        console.log(date1);   //不需要 new Date();
        console.log(date1.valueOf());  //不需要 new Date();
        var date = new Date();  
        console.log(date.getTime()); //需要new Date();
        console.log(Date.now());  //h5 新增的
    </script>
</head>

<body>

</body>

</html>